#!/bin/bash
if [ $# -lt 3 ]; then
   echo "usage:  $0 <inputfile> <interface> <date>"
   exit -1
fi

echo "sigstr file: $1"
echo "interface: $2"
echo "date: $3"
PARSED=sigstr_$3_$2_parsed.log

awk -f parseLog.awk < $1 > $PARSED

cat $PARSED | grep router01 > sigstr_$3_$2_r01.log
cat $PARSED | grep router02 > sigstr_$3_$2_r02.log
cat $PARSED | grep router03 > sigstr_$3_$2_r03.log
cat $PARSED | grep router04 > sigstr_$3_$2_r04.log

